
package me.zhengjie.modules.management.service.webservice;

import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceException;
import javax.xml.ws.WebServiceFeature;


@WebServiceClient(name = "K3CloudTrigger", targetNamespace = "http://localhost/services/K3CloudTrigger", wsdlLocation = "http://10.66.52.81:8090/services/K3CloudTrigger?wsdl")
//@WebServiceClient(name = "K3CloudTrigger", targetNamespace = "http://localhost/services/K3CloudTrigger", wsdlLocation = "http://oa.justech.com/services/K3CloudTrigger?wsdl")
public class K3CloudTrigger
    extends Service
{

    private final static URL K3CLOUDTRIGGER_WSDL_LOCATION;
    private final static WebServiceException K3CLOUDTRIGGER_EXCEPTION;
    private final static QName K3CLOUDTRIGGER_QNAME = new QName("http://localhost/services/K3CloudTrigger", "K3CloudTrigger");

    static {
        URL url = null;
        WebServiceException e = null;
        try {
              url = new URL("http://10.66.52.81:8090/services/K3CloudTrigger?wsdl");
//              url = new URL("http://oa.justech.com/services/K3CloudTrigger?wsdl");
        } catch (MalformedURLException ex) {
            e = new WebServiceException(ex);
        }
        K3CLOUDTRIGGER_WSDL_LOCATION = url;
        K3CLOUDTRIGGER_EXCEPTION = e;
    }

    public K3CloudTrigger() {
        super(__getWsdlLocation(), K3CLOUDTRIGGER_QNAME);
    }

    public K3CloudTrigger(WebServiceFeature... features) {
        super(__getWsdlLocation(), K3CLOUDTRIGGER_QNAME, features);
    }

    public K3CloudTrigger(URL wsdlLocation) {
        super(wsdlLocation, K3CLOUDTRIGGER_QNAME);
    }

    public K3CloudTrigger(URL wsdlLocation, WebServiceFeature... features) {
        super(wsdlLocation, K3CLOUDTRIGGER_QNAME, features);
    }

    public K3CloudTrigger(URL wsdlLocation, QName serviceName) {
        super(wsdlLocation, serviceName);
    }

    public K3CloudTrigger(URL wsdlLocation, QName serviceName, WebServiceFeature... features) {
        super(wsdlLocation, serviceName, features);
    }


    @WebEndpoint(name = "K3CloudTriggerHttpPort")
    public K3CloudTriggerPortType getK3CloudTriggerHttpPort() {
        return super.getPort(new QName("http://localhost/services/K3CloudTrigger", "K3CloudTriggerHttpPort"), K3CloudTriggerPortType.class);
    }


    @WebEndpoint(name = "K3CloudTriggerHttpPort")
    public K3CloudTriggerPortType getK3CloudTriggerHttpPort(WebServiceFeature... features) {
        return super.getPort(new QName("http://localhost/services/K3CloudTrigger", "K3CloudTriggerHttpPort"), K3CloudTriggerPortType.class, features);
    }

    private static URL __getWsdlLocation() {
        if (K3CLOUDTRIGGER_EXCEPTION!= null) {
            throw K3CLOUDTRIGGER_EXCEPTION;
        }
        return K3CLOUDTRIGGER_WSDL_LOCATION;
    }

}
